package net.mcreator.infinite_storage.procedure;

import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.common.MinecraftForge;

import net.mcreator.infinite_storage.InfiniteStorage;
import net.mcreator.infinite_storage.ElementsInfiniteStorageMod;

import java.util.Map;
import java.util.HashMap;

import java.io.File;

@ElementsInfiniteStorageMod.ModElement.Tag
public class ProcedureConfigCreate extends ElementsInfiniteStorageMod.ModElement {
	public ProcedureConfigCreate(ElementsInfiniteStorageMod instance) {
		super(instance, 33);
	}
	static Map<String, Object> $_dependencies = new HashMap<>();
	public static void executeProcedure(Map<String, Object> dependencies) {
		File configFile = new File("config/InfiniteStorage.cfg");
		InfiniteStorage InfiniteStorage = new InfiniteStorage();
		InfiniteStorage.init(configFile);
	}

	@Override
	public void init(FMLInitializationEvent event) {
		this.executeProcedure(new java.util.HashMap<>());
	}

	@Override
	public void preInit(FMLPreInitializationEvent event) {
		MinecraftForge.EVENT_BUS.register(this);
	}
}
